/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 */

import { generateId } from '../../../../../src/common/util/math-util';

describe('test math-util', () => {
  test('test generateId', () => {
    const set: Set<string> = new Set<string>();
    for (let i = 0; i < 100000; i++) {
      const id = generateId();
      expect(set.has(id)).toBeFalsy();
      set.add(id);
    }
    set.clear();
  });
});
